<?php

$self = array(
	'name' => 'CObjects',

	'type' => 'collection',

	'fields' => array(
		array(
			'name' => 'oid',
			'type' => 'integer',
			'db' => array( 'type' => 'INTEGER', 'attributes' => array('auto_increment'),),
		),
		array(
			'name' => 'type',
			'type' => 'string',
			'size' => '32',
			'db' => array( 'type' => 'VARCHAR', 'size' => 32,),
			'default' => '',
		),
		array(
			'name' => 'data',
			'type' => 'text',
			'db' => array( 'type' => 'MEDIUMTEXT',),
		),
		array(
			'name' => 'ctime',
			'type' => 'timestamp',
			'db' => array( 'type' => 'TIMESTAMP',),
		),
		array(
			'name' => 'mtime',
			'type' => 'timestamp',
			'db' => array( 'type' => 'TIMESTAMP',),
		),
		
        array( 	
			'name' => 'is_deleted',
			'type' => 'bool', 
			'db' => array( 'type' => 'TINYINT', 'size'=>1),
		),
	),

	'indexes' => array(
		array('type'),
		array('ctime'),
		array('mtime'),
	),

	'primary_key' => array('oid'),

	'db' => array('name' => 'objects' ),

	'implement' => 'collections/collection.php#collection',
);

